Optimal. Leaf size=30 \[ -\frac {2 b \sqrt {a \sin (e+f x)}}{f \sqrt {b \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {2669}
\begin {gather*} -\frac {2 b \sqrt {a \sin (e+f x)}}{f \sqrt {b \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2669
Rubi steps
\begin {align*} \int \sqrt {a \sin (e+f x)} \sqrt {b \tan (e+f x)} \, dx &=-\frac {2 b \sqrt {a \sin (e+f x)}}{f \sqrt {b \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 30, normalized size = 1.00 \begin {gather*} -\frac {2 b \sqrt {a \sin (e+f x)}}{f \sqrt {b \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(294\) vs.
\(2(26)=52\).
time = 0.40, size = 295, normalized size = 9.83
method | result | size |
risch | \(-\frac {2 i \sqrt {a \sin \left (f x +e \right )}\, \sqrt {-\frac {i b \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{\left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right ) f}\) | \(71\) |
default | \(-\frac {\left (\cos \left (f x +e \right )-1\right ) \left (-4 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \cos \left (f x +e \right )+\ln \left (-\frac {2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1}{\sin \left (f x +e \right )^{2}}\right )-\ln \left (-\frac {2 \left (2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1\right )}{\sin \left (f x +e \right )^{2}}\right )-4 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\right ) \cos \left (f x +e \right ) \sqrt {a \sin \left (f x +e \right )}\, \sqrt {\frac {b \sin \left (f x +e \right )}{\cos \left (f x +e \right )}}}{2 f \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sin \left (f x +e \right )^{3}}\) | \(295\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 52, normalized size = 1.73 \begin {gather*} -\frac {2 \, \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{f \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \sin {\left (e + f x \right )}} \sqrt {b \tan {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.90, size = 60, normalized size = 2.00 \begin {gather*} \frac {\sin \left (2\,e+2\,f\,x\right )\,\sqrt {a\,\sin \left (e+f\,x\right )}\,\sqrt {\frac {b\,\sin \left (2\,e+2\,f\,x\right )}{2\,{\cos \left (e+f\,x\right )}^2}}}{f\,\left ({\cos \left (e+f\,x\right )}^2-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________